home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
ITOB.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
38 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_IToB( nInteger, nMax ) --> nInteger
PARAMETERS:
nInteger : Integer to convert to binary INTEGER
nMax : Maximum Number of Binary Digits to use (See Description)
SHORT:
Convert a base 10 integer to binary (base 2).
DESCRIPTION:
_IToB() accepts an integer and returns an integer representing the
binary equivalent. Leading zeros are not provided. If you need them, pad
the result to the desired length.
The largest known possible integer that can be so converted is: 65,536.
NOTE:
See _IToBS() (Integer to Binary String) for conversions resulting in
greater than 16 binary digits (65,536d). _IToBS() can convert integer
values resulting in up to 52 binary digits.
EXAMPLE:
t = _itob(13)
Result: t = 1101
******************************************************************************/